//element ui
export const mixin = {
	//信息提示
	methods:{
		notify(title,type="",message=""){
			this.$notify({
				title:title,
				type:type,
				message:message
			})
		},


		//提示信息
		BackEndDataJudgment(res,str=""){
			if(res.code	==200){
				this.notify(str+'成功','success','这是一条成功的提示消息')
				this.centerDialogVisible=false;
				this.getAll();
			}else{
				this.notify(str+"失败","error",'这是一条失败的提示消息')
			}
		},
	}
}
